package com.touzbi.hss.beans;

import java.util.HashSet;
import java.util.Set;

public class Patient {
	private long id;
	private String firstName;
	private String lastName;
	private String mail;
	private String phoneNumber;
	private Set<Soin> soins = new HashSet<Soin>();

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getFirstName() {
		return this.firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return this.lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getMail() {
		return this.mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getPhoneNumber() {
		return this.phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	protected Set<Soin> getSoins() {
		return soins;
	}

	protected void setSoins(Set<Soin> soins) {
		this.soins = soins;
	}

	public void addSoin(Soin soin) {
		this.soins.add(soin);
		soin.addPatient(this);
	}

	public void removeSoin(Soin soin) {
		this.soins.remove(soin);
		soin.removePatient(this);
	}

}
